package com.ywl.task.controller;

import com.ywl.task.service.ConsoleService;
import com.ywl.task.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 严伟伦
 * @Company 无
 * @Description
 * @Date: 2024/9/11 20:08
 */
@RestController
@RequestMapping("/console")
@CrossOrigin
public class ConsoleController {
    @Autowired
    private ConsoleService consoleService;
    @GetMapping("/count")
    public QdResult count(@RequestParam("userId") Long userId){
        System.out.println("1111111111111111111" + userId);
        return consoleService.count(userId);
    }
}
